<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body{
            margin-top: 60px;
        }

        .nav{
            margin: 0 auto;
            width: 970px;
            position: fixed;
            top: 0;
            left: 50%;
            margin-left: -485px;
        }

        ul {
            text-align: center;
            list-style: none;
            width: 100%;
            height: 60px;
            background-color: black;
        }

        a {
            text-decoration: none; /*去掉超链接下划线 */
            line-height: 60px;
            font-size: 24px;
            color: rgb(148, 156, 164);
        }
        a:hover{
            color: goldenrod;
        }

        li {
            text-align: center;
            float: left;
            height: 60px;
            width: 20%;
        }
    </style>
</head>

<body>
    <div class="nav">
        <ul>
            <li><a href="">博客园</a></li>
            <li><a href="">新随笔</a></li>
            <li><a href="">联系</a></li>
            <li><a href="">订阅</a></li>
            <li><a href="">管理</a></li>
        </ul>
    </div>
    <div style="height: 10000px;"></div>
</body>

</html>